package edu.sctu.practice.class01.renpingan.assign03.geometricobject;

/**
 * Created by Administrator on 2015/10/22.
 */
public class GeometricObjectMain {

    public static void main(String[] args) {
        Circle circle = new Circle(8, "red");
        Rectangle rectangle = new Rectangle(20, 5, "green");

        Equal equal = new Equal();

        if (equal.equalArea(circle, rectangle)) {
            System.out.println("两个图形面积相等");
        }
        ShowInfo showInfo = new ShowInfo();
        showInfo.displayGeometricObject(circle);
        showInfo.displayGeometricObject(rectangle);


    }


}
